package com.wq.gof.designer.state;

import java.util.List;

/**
 * @Author: wangqiang20995
 * @Date:2019/1/28
 * @Description:
 * @Resource:
 */
public class MiddleLevel extends AbstractLevel{

    private static final Integer CURRENT_LEVEL = 2;

    public MiddleLevel(UserRule userRule){
        super(userRule);
    }


    @Override
    protected List<String> showLevelPriority(UserVo userVo) {

        if(CURRENT_LEVEL.equals(userVo.getLevel())){
            return getPriorities();
        }

        userRule.setCurrentLevel(new HighLevel(userRule));
        List<String> list = getPriorities();
        list.add("急速下载");
        list.add("5T云存储空间");

        return userRule.nextLevelPriority(userVo);
    }

    @Override
    protected Integer currentLevel() {
        return CURRENT_LEVEL;
    }
}
